Hej Udvikleren. Jeg har i løbet af 12 uger arbejdet på et teknologi projekt omhandlende et alarmsystem. Jeg startede med omkring 300 fejl. Dem fik jeg ned på få fejl, men selvfølgelig kommer der nogle nye, når man retter nogle andre. Og da jeg skal aflevere imorgen, vil jeg lige høre om i hurtigt kunne læse koden igennem, samt kommentere hvad jeg skal gøre for at få den til at virke. Jeg er en begynder, så koden burde ikke være så advanceret for jer. Jeg er først rigtig blevet forvirret, da jeg skulle have opklaret nogle problemer med et objekt array. Fejlen kunne løses ved at lave to klasser, og det giver problemer i mine funktioner og variabler.
Her er koden:
#include <iostream>
#include <time.h>
#include <string.h>
#include <fstream>
using namespace std;
int signalg = 0;
class Sensor
{
public:
Sensor(char *, char *, int, bool, int, int, int);
void vis_sensor(void);//viser sensorens oplysninger
void alarm(void);//det kunstige intelligens i programmet
static int antal;//antal sensorer computeren er har registeret og tilsluttet
private:
char navn[64];//sensorens navn TOMMY HJÆLP MED AT ÆNDRE DET TIL navn[64]
char rum[64];//rummet sensoren befinder sig i
int signal; //sensors signal, hvis 0 ingen sensor tilsluttet.
int vigtig;//bruges til at tjekke hvor vigtig brugeren har valgt at sensoren skal være
bool aktiv;//Bruges til at tjekke om sensoren allerede har opdaget noget(alarm funktionen
int normal;//normal værdi for denne sensor
int vaerdi;//ændring i værdi=igangsætning af alarm
int vigtigMedium;//bruges i alarm
int vigtigSmall;//Bruges i alarm
int antalSensor;//Bruges i alarm
int backup[2];//tager backup af de 3 variabler, så de kan "resettes" efter de har været brugt en gang
};
Sensor::Sensor(char *navn, char *rum, int vigtig, bool aktiv, int normal, int vaerdi, int signal)
{
strcpy(Sensor::navn, navn);
strcpy(Sensor::rum, rum);
Sensor::vigtig=vigtig;
Sensor::aktiv=aktiv;
Sensor::normal=normal;
Sensor::vaerdi=vaerdi;
Sensor::signal=signal;
}
class SensorList
{
public:
Sensor nySensor[30];
void setup();
Sensor CreateSensor();
void sendMsg(int, int, int);//sender besked til brugeren + sørger for at logge hvad der er sket med dato og tid.
};
void SensorList::setup(){
if(signalg==1)
{
Sensor::antal++;
int i=Sensor::antal;
nySensor[i] = CreateSensor();
nySensor[i].vis_sensor();
signalg=0;
}
}
void SensorList::CreateSensor(void)
{
cout << "Ny sensor blev registreret" << endl;
cout << "Udfyld venligst informationerne herunder: " << endl;
cout << "Hvad vil du kalde den nye sensor?" << endl;
cin >> navn;
cout << "Godt navn. Hvor vigtig synes du sensoren skal være, på en skala fra 1-10?" << endl;
cin >> vigtig;
cout << "Godt valg. Hvilket rum befinder sensoreren sig i?" << endl;
cin >> rum;
signal = 1;
return Sensor(navn, rum, vigtig, aktiv, normal, vaerdi, signal);
}
void Sensor::vis_sensor(void) {
cout << "Tak for oplysningerne. Her er en liste med de ting du har valgt: " << endl;
cout << "Navn: " << navn << endl;
cout << "Rum: " << rum << endl;
cout << "Vigtighed: " << vigtig << endl;
}
void SensorList::sendMsg(int nr, int nr2, int nr3)
{
backup[0]=vigtigMedium;
backup[1]=vigtigSmall;
backup[2]=antalSensor;
time_t system_tid;
system_tid = time(NULL);
ofstream sensor_data("SENSORDATA.DAT");
if(antalSensor == 1)
{
cout << nySensor[nr].navn << " har opdaget noget!" << endl;
cout << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << "." << endl;
sensor_data << "Dato og tidspunkt for opdagelse: " << ctime(&system_tid) << endl;
sensor_data << nySensor[nr].navn << " har opdaget noget!" << endl;
sensor_data << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << "." << endl;
cout << "Informationerne er logget i SENSORDATA.DAT" << endl;
antalSensor = backup[2];
}
else if(antalSensor == 2)
{
cout << nySensor[nr].navn << " og " << nySensor[nr2].navn << " har opdaget noget!" << endl;
cout << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << " og " << nySensor[nr2].navn << " befinder sig i " << nySensor[nr2].rum << "." << endl;
sensor_data << "Dato og tidspunkt for opdagelse: " << ctime(&system_tid) << endl;
sensor_data << nySensor[nr].navn << " og " << nySensor[nr2].navn << " har opdaget noget!" << endl;
sensor_data << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << " og " << nySensor[nr2].navn << " befinder sig i " << nySensor[nr2].rum << "." << endl;
cout << "Informationerne er logget i SENSORDATA.DAT" << endl;
vigtigMedium = backup[0];
antalSensor = backup[2];
}
else if(antalSensor == 3)
{
cout << nySensor[nr].navn << " og " << nySensor[nr2].navn << " og " << nySensor[nr3].navn << " har opdaget noget!" << endl;
cout << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << " og " << nySensor[nr2].navn << " befinder sig i " << nySensor[nr2].rum << "og" << nySensor[nr3].navn << " befinder sig i " << nySensor[nr3].rum << "." << endl;
sensor_data << "Dato og tidspunkt for opdagelse: " << ctime(&system_tid) << endl;
sensor_data << nySensor[nr].navn << " og " << nySensor[nr2].navn << " og " << nySensor[nr3].navn << " har opdaget noget!" << endl;
sensor_data << nySensor[nr].navn << " befinder sig i " << nySensor[nr].rum << " og " << nySensor[nr2].navn << " befinder sig i " << nySensor[nr2].rum << "og" << nySensor[nr3].navn << " befinder sig i " << nySensor[nr3].rum << "." << endl;
cout << "Informationerne er logget i SENSORDATA.DAT" << endl;
vigtigSmall = backup[1];
antalSensor = backup[2];
}
}
void Sensor::alarm()
{
int i;
int ii;
int iii;
for(i=0;i<antal;i++)
{
while (nySensor[i].vaerdi != nySensor[i].normal)
{
if((nySensor[i].vaerdi != nySensor[i].normal) && (nySensor[i].vigtig == 10))
{
antalSensor = 1;
sendMsg(i);
}
else if((nySensor[i].vaerdi != nySensor[i].normal) && (nySensor[i].vigtig <=9) && (nySensor[i].vigtig >=5) && (nySensor[i].aktiv = false))
{
nySensor[i].aktiv = true;
if (vigtigMedium == 0){
i=ii;
vigtigMedium++;
}
if((vigtigMedium == 1)&&(nySensor[i].aktiv = false))
{
antalSensor = 2;
sendMsg(i, ii);
}
}
else if((nySensor[i].vaerdi != nySensor[i].normal) && (nySensor[i].vigtig <=4) && (nySensor[i].vigtig >=1) && (nySensor[i].aktiv = false))
{
if(vigtigSmall==0)
{
nySensor[i].aktiv = true;
i=iii;
vigtigSmall++;
}
else if((vigtigSmall == 1)&&(nySensor[i].aktiv = false))
{
nySensor[i].aktiv = true;
i=ii;
vigtigSmall++;
}
else if((vigtigSmall == 2)&&(nySensor[i].aktiv = false))
{
antalSensor = 3;
sendMsg(i, ii, iii);
}
}
}
}
}
void tjekSensor()
{
int i;
for(i=0; i<Sensor.antal; i++)
{
if (Sensor.nySensor[i].signal==0)
{
delete Sensor.nySensor[i];
Sensor.antal--;
}
i=0;
}
}
void brugerInput()
{
char text[64];
char name[64];
char ny[64]="/new";
char luk[64]="/exit";
char slet[64]="/delete";
char alarm[64]="/alarm";
char list[64]="/list";
int i;
cin >> text >> name >> endl;
if (text==ny){
signalg=1;
}
else if (text==luk)
{
exit(1);
}
else if ((text==slet)&&(name!=NULL))
{
for(i=0;i<Sensor.antal;i++)
{
if(Sensor.nySensor[i].navn==name)
{
Sensor.nySensor[i].signal=0;//fjern signal på valgte sensor
}
else
{
cout << "Du tastede et forkert navn ind" << endl;
i=0;
}
}
}
else if ((text==alarm)&&(name!=NULL))
{
for(i=0;i<Sensor.antal; i++)
{
if(Sensor.nySensor[i].navn==name)
{
Sensor.nySensor[i].vaerdi=1;//ændrer værdien=sætter alarmen igang
}
else
{
cout << "Du tastede forkert navn ind" << endl;
}
}
}
else if(text==list)
{
cout << "Følgende sensorer er registreret i systemet" << endl;
for(i=0;i<Sensor.antal; i++)
{
cout << i << ": " << Sensor.nySensor[i].navn << " befinder sig i følgende rum: " << Sensor.nySensor[i].rum << ". Du har valgt at den på en skala fra 1-10 har en vigtighed på: " << Sensor.nySensor[i].vigtig << "." << endl;
}
}
else
{
cout << "Du tastede forkert. Prøv igen!" << endl;
}
}
void main(void){
system("PAUSE");
return(0);
int never=0;
do
{
reg_sensor();
tjekSensor();
brugerInput();
alarm();
} while(never=0);
}
Og her er compiler loggen:
1>------ Build started: Project: ISBFINAL, Configuration: Debug Win32 ------
1>Compiling...
1>alarm.cpp
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(36) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\programmer\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(37) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\programmer\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(64) : error C2556: 'void SensorList::CreateSensor(void)' : overloaded function differs only by return type from 'Sensor SensorList::CreateSensor(void)'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(50) : see declaration of 'SensorList::CreateSensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(64) : error C2371: 'SensorList::CreateSensor' : redefinition; different basic types
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(50) : see declaration of 'SensorList::CreateSensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(68) : error C2065: 'navn' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(70) : error C2065: 'vigtig' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(72) : error C2065: 'rum' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(73) : error C2065: 'signal' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'navn' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'rum' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'vigtig' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'aktiv' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'normal' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'vaerdi' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(74) : error C2065: 'signal' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(86) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(86) : error C2065: 'vigtigMedium' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(87) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(87) : error C2065: 'vigtigSmall' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(88) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(88) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(92) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(94) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(95) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(95) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(97) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(98) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(98) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(100) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(100) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(102) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(104) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(104) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(105) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(105) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(105) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(105) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(107) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(107) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(108) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(108) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(108) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(108) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(110) : error C2065: 'vigtigMedium' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(110) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(111) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(111) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(113) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(115) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(115) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(115) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(116) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(118) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(118) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(118) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::navn' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(19) : see declaration of 'Sensor::navn'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(119) : error C2248: 'Sensor::rum' : cannot access private member declared in class 'Sensor'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(20) : see declaration of 'Sensor::rum'
1> c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(11) : see declaration of 'Sensor'
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(121) : error C2065: 'vigtigSmall' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(121) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(122) : error C2065: 'antalSensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(122) : error C2065: 'backup' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(136) : error C2065: 'nySensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(136) : error C2228: left of '.vaerdi' must have class/struct/union
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(136) : error C2065: 'nySensor' : undeclared identifier
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(136) : error C2228: left of '.normal' must have class/struct/union
1>c:\documents and settings\eucvest\dokumenter\my dropbox\htx\teknologi\isb_program\isbfinal\isbfinal\alarm.cpp(136) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>Build log was saved at "file://c:\Documents and Settings\EUCVEST\Dokumenter\My Dropbox\HTX\teknologi\ISB_PROGRAM\ISBFINAL\ISBFINAL\Debug\BuildLog.htm"
1>ISBFINAL - 73 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========